package com.SmartCare.pojo.diet;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Dinner implements Comparable<Dinner> {
    private Long elderId;
    private List<Food> stapleFood;
    private List<Food> assistedFood;
    private List<Food> meatDishs;
    private List<Food> vegetableDishs;
    private List<Food> soup;
    private List<Others> others;
    private LocalDateTime createdTime;

    @Override
    public int compareTo(Dinner other) {
        return other.getCreatedTime().compareTo(this.createdTime);
    }
}